package com.shujia.jichu

class Animal {
  var _id:String = _

  def fun1():Unit = {
    println("fun1方法")
  }
}

class Dog extends Animal{
  private var _kind:String = _

  def this(id:String,kind:String) {
    this()
    this._id = id
    this._kind = kind
  }

  override def toString: String = s"编号:${_id}, 种类:${_kind}"

}
